package com.jk.controller;

import com.jk.bean.WenShiLunBo;
import com.jk.service.WenShiService;
import com.jk.utils.ReceivePage;
import com.jk.utils.SendPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description: 骚骚的🐏
 * @Author: 杨
 * @Date: 2019/3/16 21:04
 */
@Controller
@RequestMapping("wenshi")
public class WenShiController {
   @Autowired
    private WenShiService wsService;
    @ResponseBody
    @RequestMapping("querywsLunBo")
    public SendPage queryLunBo(WenShiLunBo wenShiLunBo, ReceivePage rp){

        return wsService.queryLunBo(wenShiLunBo,rp);
    }
    @ResponseBody
    @RequestMapping("addwsLunBo")
    public String addwsLunBo(WenShiLunBo wenShiLunBo){
        wsService.addwsLunBo(wenShiLunBo);
        return null;
    }

}
